package cn.newtouch.base.overload;

public class Test
{
    void max(int a, int b)
    {
        System.out.println(a > b ? a : b);
    }

    void max(short a, short b)
    {
        System.out.println("short");
        System.out.println(a > b ? a : b);
    }

    void max(float a, float b)
    {
        System.out.println(a > b ? a : b);
    }

    public static void main(String[] args)
    {
        Test t = new Test();
        t.max(3, 4);
        short a = 3;
        short b = 4;
        t.max(a, b);
    }
}